var foo = '\\\"';
var foo = /[ab\-]/
var foo = /[\-ab]/
var foo = /[ab\?]/
var foo = /[ab\.]/
var foo = /[a\|b]/
var foo = /\-/
var foo = /[\-]/
var foo = /[ab\$]/
var foo = /[\(paren]/
var foo = /[\[]/
var foo = /[\/]/
var foo = /[\B]/
var foo = /[a][\-b]/
var foo = /\-[]/
var foo = /[a\^]/
var foo = `\\\"${foo}\\\"`;
"use\ strict";
({ foo() { "foo"; "bar"; "ba\z" } })
var foo = `\\\"`;
"\'";
'\"';
"\#";
"\e";
`\"`;
`\"${foo}\"`;
`\#{foo}`;
/\!/;
/\@/;
/[\[]/;
/[a-z\-]/;

//以下案例需要单独遍历测试
/[^\^]/
/[^\^]/u
/[\$]/v
  /[\&\&]/v
  /[\!\!]/v
  /[\#\#]/v
  /[\%\%]/v
  /[\*\*]/v
  /[\+\+]/v
  /[\,\,]/v
  /[\.\.]/v
  /[\:\:]/v
  /[\;\;]/v
  /[\<\<]/v
  /[\=\=]/v
  /[\>\>]/v
  /[\?\?]/v
  /[\@\@]/v
  /[\~\~]/v
  /[^\^\^]/v
  /[_\^\^]/v
  /[\&\&&\&]/v
  /[\p{ASCII}--\.]/v
  /[\p{ASCII}&&\.]/v
  /[\.--[.&]]/v
  /[\.&&[.&]]/v
  /[\.--\.--\.]/v   //应该报三个错误
  /[\.&&\.&&\.]/v   //应该报三个错误
/[[\.&]--[\.&]]/v  //应该报2个错误
/[[\.&]&&[\.&]]/v  //应该报2个错误